package com.fresh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fresh.entity.FreshCategory;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface CategoryMapper extends BaseMapper<FreshCategory> {


    List<FreshCategory> selectAll();

    List<FreshCategory> selectByPid(Integer id);

    FreshCategory selectOne(Integer id);

    void updateStatus(List<Integer> ids);
}
